home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Fgetchar(2) Oct. 1, 1991 Fgetchar(2)
-
-
- N✓NA✓AM✓ME✓E
- Fgetchar - read a character from a file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Fgetchar( WORD fh, WORD mode );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓F_✓g_✓e_✓t_✓c_✓h_✓a_✓r reads a character from the open file whose handle
- is _✓f_✓h. The parameter _✓m_✓o_✓d_✓e has an effect only if the open
- file is a terminal or pseudo-terminal, in which case the
- bits of _✓m_✓o_✓d_✓e have the following meanings:
-
- 0x0001 Cooked mode; special control characters (control-C
- and control-Z) are checked for and interpreted if
- found (they cause SIGINT and SIGTSTP, respectively,
- to be raised); also, flow control with control-S
- and control-Q is activated.
-
- 0x0002 Echo mode; characters read are echoed back to the
- terminal.
-
- The ASCII value of the character read is put in the low
- byte of the long word that is returned. If the file is a
- terminal or pseudo-terminal, the scan code of the charac-
- ter pressed and (possibly) the shift key status are also
- returned in the long word, just as with the BIOS _✓B_✓c_✓o_✓n_✓i_✓n
- system call.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- The character read, if successful.
-
- 0x0000FF1A if end of file is detected.
-
- EIHNDL if _✓f_✓h is not a valid handle for an open file.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓B_✓c_✓o_✓n_✓i_✓n(2), _✓C_✓c_✓o_✓n_✓i_✓n(2), _✓C_✓a_✓u_✓x_✓i_✓n(2), _✓F_✓p_✓u_✓t_✓c_✓h_✓a_✓r(2), _✓F_✓r_✓e_✓a_✓d(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-